package com.igeekhome.mapper;

import com.igeekhome.dto.SectionNetworkDto;
import com.igeekhome.pojo.DNetwork;
import com.igeekhome.pojo.DNetworkExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DNetworkMapper {
    int countByExample(DNetworkExample example);

    int deleteByExample(DNetworkExample example);

    int deleteByPrimaryKey(Integer networkId);

    int insert(DNetwork record);

    int insertSelective(DNetwork record);

    List<DNetwork> selectByExample(DNetworkExample example);

    DNetwork selectByPrimaryKey(Integer networkId);

    int updateByExampleSelective(@Param("record") DNetwork record, @Param("example") DNetworkExample example);

    int updateByExample(@Param("record") DNetwork record, @Param("example") DNetworkExample example);

    int updateByPrimaryKeySelective(DNetwork record);

    int updateByPrimaryKey(DNetwork record);

    /**
     * 查找所有网点id和name
     * @param strId 逗号拼接的id
     * @return
     */
    List<SectionNetworkDto> selectNetworkInIds(String strId);
}